.product-detail-page {
  padding: 20px 0 60px 0;
  background: #F3F3F3;
  min-height: calc(100vh - 70px);
}

.back-button {
  margin-bottom: 30px;
}

.product-detail-page .product-image-card {
  height: 100%;
}

.product-image-card .ant-card-body {
  padding: 0;
  height: 100%;
}

.product-detail-page .product-image-container {
  height: 500px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.product-detail-page .product-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.product-detail-page .product-detail-icon {
  font-size: 8rem;
  color: white;
  animation: pulse 2s infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.product-detail-page .product-info-card {
  height: 100%;
}

.product-info-card .ant-card-body {
  padding: 40px;
}

.product-detail-page .product-title {
  margin-bottom: 0;
  color: #1f2937;
}

.product-detail-page .product-tag {
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 20px;
}

.product-detail-page .product-description {
  margin-bottom: 24px;
}

.product-detail-page .description-text {
  font-size: 16px;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 0;
}

.product-detail-page .product-actions {
  margin-bottom: 32px;
}

.product-detail-page .product-content-card {
  margin-top: 32px;
}

.product-content-card .ant-card-body {
  padding: 40px;
}

.product-detail-page .product-rich-content {
  line-height: 1.8;
  color: #4b5563;
}

.product-rich-content h1,
.product-rich-content h2,
.product-rich-content h3,
.product-rich-content h4,
.product-rich-content h5,
.product-rich-content h6 {
  color: #1f2937;
  margin-top: 24px;
  margin-bottom: 16px;
}

.product-rich-content p {
  margin-bottom: 16px;
}

.product-rich-content ul,
.product-rich-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.product-rich-content li {
  margin-bottom: 8px;
}

.product-rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.product-rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.product-rich-content th,
.product-rich-content td {
  border: 1px solid #e5e7eb;
  padding: 12px;
  text-align: left;
}

.product-rich-content th {
  background: #f9fafb;
  font-weight: 600;
}

.product-detail-page .loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
}

.loading-container p {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}

.product-detail-page .error-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  background: #fef2f2;
  border-radius: 12px;
  border: 1px solid #fecaca;
}

.error-container p {
  color: #dc2626;
  font-size: 1.1rem;
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .product-detail-page {
    padding: 15px 0 40px 0;
  }

  .back-button {
    margin-bottom: 20px;
  }

  .product-detail-page .product-image-container {
    height: 300px;
  }

  .product-detail-page .product-detail-icon {
    font-size: 5rem;
  }

  .product-info-card .ant-card-body {
    padding: 24px;
  }

  .product-content-card .ant-card-body {
    padding: 24px;
  }

  .product-detail-page .product-title {
    font-size: 24px !important;
  }

  .product-detail-page .description-text {
    font-size: 14px;
  }

  .product-actions .ant-space {
    width: 100%;
    justify-content: center;
  }

  .product-actions .ant-btn {
    flex: 1;
    max-width: 150px;
  }

}

@media (max-width: 480px) {
  .product-detail-page .product-image-container {
    height: 250px;
  }

  .product-detail-page .product-detail-icon {
    font-size: 4rem;
  }

  .product-info-card .ant-card-body {
    padding: 16px;
  }

  .product-content-card .ant-card-body {
    padding: 16px;
  }

  .product-actions .ant-space {
    flex-direction: column;
    width: 100%;
  }

  .product-actions .ant-btn {
    width: 100%;
    max-width: none;
  }
}
